//
//  AppDelegate.m
//  TestAgain
//
//  Created by 商广硕 on 2022/7/1.
//

#import "AppDelegate.h"
#import "ViewController.h"
#import "HomeViewController.h"


@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];

    /**将自己的默认启动ViewController设为根视图**/

    //app入口Viewcontroller

    ViewController * vc =[[ViewController alloc]init];


//    self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:[[ViewController alloc] init]];
//    self.window.rootViewController = [[ViewController alloc] init];
    
    UINavigationController * nav =[[UINavigationController alloc] initWithRootViewController:vc];
//
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window setRootViewController:nav];
    //显示

    [self.window makeKeyAndVisible];
    return YES;
}


#pragma mark - UISceneSession lifecycle





@end
